From 0f3f2e7f9c7563826cde54c29b55743809e1f1ea Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 5 Jan 2016 10:01:33 -0800 Subject: [PATCH] HighContrast: more combobox fixes Taken from Adwaita. --- gtk/theme/HighContrast/_common.scss | 14 ++++++++------ gtk/theme/HighContrast/gtk.css | 13 +++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index d367dd8455..9da926f72c 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -767,13 +767,15 @@ combobox { border-radius: 0 3px 3px 0; } } - & > button.combo, & > button.combo:backdrop { - // It is needed to specify the backdrop button or it gets overridden - border-radius: 0 3px 3px 0; - border-left-style: none; + & > button.combo:not(:only-child) { + &:dir(ltr) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + border-left-style: none; + } &:dir(rtl) { - border-radius: 3px 0 0 3px; - border-left-style: solid; + border-top-right-radius: 0; + border-bottom-right-radius: 0; border-right-style: none; } } diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css index 0a2b696cfb..99d35413e9 100644 --- a/gtk/theme/HighContrast/gtk.css +++ b/gtk/theme/HighContrast/gtk.css @@ -912,13 +912,14 @@ combobox { border-radius: 3px 0 0 3px; } combobox > entry.combo:dir(rtl) { border-radius: 0 3px 3px 0; } - combobox > button.combo, combobox > button.combo:backdrop { - border-radius: 0 3px 3px 0; + combobox > button.combo:not(:only-child):dir(ltr) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; border-left-style: none; } - combobox > button.combo:dir(rtl), combobox > button.combo:backdrop:dir(rtl) { - border-radius: 3px 0 0 3px; - border-left-style: solid; - border-right-style: none; } + combobox > button.combo:not(:only-child):dir(rtl) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-right-style: none; } /************ * Toolbars * -- 2.30.2